<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html>  
<head>    
<title>Document</title>  
<style type="text/css">  
    * { font-family: "微软雅黑"; }  
    .textField { border:none; border-bottom: 1px solid gray; text-align: center; }  
    #file { border:1px solid black; width: 80%; margin:0 auto; }  
    h1 input{ font-size:72px; }  
    td textarea { font-size: 14px; }  
    .key { width:125px; font-size:20px; }  
</style>  
</head>  
<body>  
    <form action="saveDoc" method="post">  
    <div id="file" align="center">  
        <h1><input type="text" name="title" class="textField" value="我的合同"/></h1>  
        <hr/>  
        <table>  
            <tr>  
                <td class="key">姓名：</td>  
                <td><input type="text" name="name" class="textField" value="张三"/></td>  
 				<td class="key">身份证：</td>  
                <td><input type="text" name="name" class="textField" value="11111"/></td> 
            </tr>  
            <tr>  
                <td class="key">房号：</td>  
                <td><input type="text" name="tel" class="textField" value="101"/></td>  
                <td class="key">装修商：</td>  
                <td><input type="text" name="address" class="textField" value="装修商1"/></td>  
            </tr>
                        <tr>  
                <td class="key">优化户型：</td>  
                <td><input type="text" name="tel" class="textField" value="A1"/></td>  
                <td class="key">装修风格：</td>  
                <td><input type="text" name="address" class="textField" value="欧式"/></td>  
            </tr> 
                <tr>  
                <td class="key">客厅地面：</td>  
                <td><input type="text" name="tel" class="textField" value="木地板"/></td>  
                <td class="key">客厅墙面：</td>  
                <td><input type="text" name="tel" class="textField" value="乳胶漆"/></td> 
                </tr>
                <tr>
                <td class="key">卧室地面：</td>  
                <td><input type="text" name="address" class="textField" value="木质底板"/></td>
                <td class="key">卧室墙面：</td>  
                <td><input type="text" name="address" class="textField" value="乳胶漆"/></td>  
            </tr>  
                       
            <tr>  
                <td class="key">房门样式：</td>  
                <td><input type="text" name="tel" class="textField" value="木质"/></td>  
                <td class="key">橱柜样式：</td>  
                <td><input type="text" name="address" class="textField" value="橱柜1"/></td>  
            </tr>  
            <tr>  
                <td colspan="4" class="key">装修注意条款：</td>  
            </tr>  
            <tr>  
                <td colspan="4">  
                    <textarea rows="10" cols="100" name="content"></textarea>  
                </td>  
            </tr>  
        </table>  
    </div>  
    <div align="center" style="margin-top:15px;">  
        <input type="submit" value="保存Word文档" />  
        <input type="button" value="打印" onclick="window.print();"/>  
    </div>  
    </form>  
</body>  
</html> 